package com.joysuch.wwyt.attendant.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author xsx
 * @version 1.0
 * @date 2023/2/15 13:57
 */
@Data
public class AttendantPlanBean {
    private Long id;
    @ApiModelProperty(value = "跟班人员")
    @NotNull(message = "跟班人员不能为空")
    private Long userId;

    private String userName;

    private String areaName;
    @ApiModelProperty(value = "跟班区域")
    @NotNull(message = "跟班区域不能为空")
    private Long areaId;
    @ApiModelProperty(value = "跟班时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotNull(message = "跟班开始时间不能为空")
    private Date attendantTime;
    @ApiModelProperty(value = "跟班开始时间")
    private String startTime;
    @ApiModelProperty(value = "跟班结束时间")
    private String endTime;
    @ApiModelProperty(value = "签到方式 0无需签到 1定位签到")
    private Integer signInMethod;
    @ApiModelProperty(value = "跟班计划名称")
    private String name;
    @ApiModelProperty(value = "跟班检查内容")
    private List<AttendantPlanContentBean> list;

}
